aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice/[amount].js
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-30 13:01:35 -0600
committersecondl1ght <[email protected]>2022-07-30 13:01:35 -0600
commit55719a6d91fad32dc1a633bbbfb5ad9a726ced50 (patch)
treec235a822c8b570e6460e5d3b6773b5f025e24531 /src/routes/invoice/[amount].js
parent926b1cd61d5bca6e6e9fd3420681d0829341a1e0 (diff)
parent7168cd2ea39aaa2158412bb5e966e144e8a22733 (diff)
downloadcoinos-ui-55719a6d91fad32dc1a633bbbfb5ad9a726ced50.tar.gz
coinos-ui-55719a6d91fad32dc1a633bbbfb5ad9a726ced50.zip
Merge branch 'master' of github.com:coinos/coinos-ui-v2
Diffstat (limited to 'src/routes/invoice/[amount].js')
-rw-r--r--src/routes/invoice/[amount].js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/routes/invoice/[amount].js b/src/routes/invoice/[amount].js
deleted file mode 100644
index 9e9678a6..00000000
--- a/src/routes/invoice/[amount].js
+++ /dev/null
@@ -1,12 +0,0 @@
-import { post } from '$lib/utils';
-
-const username = 'bob',
- network = 'lightning';
-
-export async function GET({ params }) {
- let { amount } = params;
- let { text } = await post('/lightning/invoice', { amount });
- await post('/invoice', { invoice: { text, network }, user: { username } });
-
- return { body: { amount, text } };
-}